<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://shiro.apache.org/tags" prefix="shiro" %>
<html>
<head>
    <title>联系人</title>

    <!--引入公共的easyui文件头-->
    <%@include file="/WEB-INF/views/commons/common_easyui.jsp" %>

    <script type="text/javascript" src="/static/js/system/linkman.js"></script>
</head>
<body>

<!--begin信息列表-->
<table id="linkman_datagrid"></table>
<!--end信息列表-->

<!--begin左上角工具栏-->
<div id="linkman_tb">
    <div>
        <shiro:hasPermission name="linkman:save">
            <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true"
               data-cmd="add">增加</a>
        </shiro:hasPermission>
        <shiro:hasPermission name="linkman:delete">
            <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true"
               data-cmd="remove">删除</a>
        </shiro:hasPermission>
        <shiro:hasPermission name="linkman:update">
            <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true"
               data-cmd="edit">编辑</a>
        </shiro:hasPermission>
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true"
           data-cmd="reload">刷新</a>
    </div>
    <%--高级查询输入框--%>
    <div>
        关键字<input id="keywords" class="easyui-textbox" name="keywords" data-options="prompt:'名字/邮箱'">
        所属学校<input id="schoolName" class="easyui-combobox" name="schoolName"
                   data-options="valueField:'id',textField:'schoolName',url:'/linkman/getSchoolName', panelHeight:'auto',
                        prompt:'按学校查询'">
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true,"
           data-cmd="query">查询</a>
    </div>
</div>
<!--end左上角工具栏-->

<!--begin添加/编辑对话框-->
<div id="linkman_dialog" align="center">
    <form id="linkman_form" method="post">
        <table style="margin-top: 20px;">
            <input type="hidden" name="id" id="linkmanId">
            <tr>
                <td>姓名</td>
                <td><input class="easyui-textbox" name="name"></td>
            </tr>
            <tr>
                <td>性别</td>
                <td><input class="easyui-combobox" name="sex" data-options=" panelHeight:'auto',
                    valueField: 'label', textField: 'value',
                    data: [{
                    label: 'true',
                    value: '男'
                    },{
                    label: 'false',
                    value: '女'
                    } ]">
                </td>
            </tr>
            <tr>
                <td>生日</td>
                <td><input class="easyui-datebox" name="brithday"></td>
            </tr>
            <tr>
                <td>所属学校</td>
                <td><input class="easyui-textbox" name="schoolName"></td>
            </tr>
            <tr>
                <td>部门</td>
                <td><input class="easyui-textbox" name="department"></td>
            </tr>
            <tr>
                <td>职务</td>
                <td><input class="easyui-textbox" name="duty"></td>
            </tr>
            <tr>
                <td>电话</td>
                <td><input class="easyui-textbox" name="phone"></td>
            </tr>
            <tr>
                <td>QQ</td>
                <td><input class="easyui-textbox" name="qq"></td>
            </tr>
            <tr>
                <td>邮箱</td>
                <td><input class="easyui-textbox" name="email"></td>
            </tr>
            <tr>
                <td>主联系人</td>
                <td><input class="easyui-combobox" name="status" data-options=" panelHeight:'auto',
                valueField: 'label', textField: 'value',
                    data: [{
                        label: 'true',
                        value: '是'
                    },{
                        label: 'false',
                        value: '否'
                    } ]">
                </td>
            </tr>
            <tr>
                <td>简介</td>
                <td><input class="easyui-textbox" name="introduction" data-options="width:350,height:60"></td>
            </tr>
        </table>
    </form>
</div>
<!--end添加/编辑对话框-->

<!--begin添加/编辑对话框底部按钮-->
<div id="linkman_bb">
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-save" data-cmd="save">保存</a>
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-cancel" data-cmd="cancel">取消</a>
</div>
<!--end添加/编辑对话框底部按钮-->

</body>
</html>
